package com.niiwoo.civet.account.enums;

import com.niiwoo.tripod.provider.exception.NoSuchEnumValueException;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * Created by wangjichao on 2018/4/23.
 */
@AllArgsConstructor
@Getter
public enum TransFreezeStatusEnum {
    HANDLING((byte)1,"处理中"),
    SUCCESS((byte)2,"成功"),
    FAIL((byte)3,"失败");

    private Byte value;
    private String desc;

    public static TransFreezeStatusEnum enumOf(Byte value){
        for (TransFreezeStatusEnum transFreezeStatusEnum : values()) {
            if (transFreezeStatusEnum.value.equals(value)) {
                return transFreezeStatusEnum;
            }
        }
        throw new NoSuchEnumValueException("TransFreezeStatusEnum:"+value);
    }
}
